var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var luckyBoxModel = require('../../app/models/luckyBoxModel.js');
var config = require('../config');

suite('测试vipModel', function () {
    var lucky_box_model;
    setup(function (done) {
        luckyBoxModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            lucky_box_model = model;
            lucky_box_model.toJSON();
            done();
        });
    });

    suite('addReceiveVipLevel', function () {
        test('添加已经领取vip等级', function () {
            console.log(lucky_box_model.refresh());
            lucky_box_model.save();
        });
    });
});
